package com.zhengqian.commons;


import com.zhengqian.api.result.SystemCode;

public class ResponseResultFactory<T> {
    /**
     * 定义一个通用的返回结果
     * @return
     */
    public static ResponseResult buildResponseResult(){
        return new ResponseResult(SystemCode.TRAFFIC_SYSTEM_SUCCESS);
    }

    /**
     *
     * @param code
     * @return
     */
    public static ResponseResult buildResponseResult(String code){
        return new ResponseResult(code);
    }

    public static ResponseResult buildResponseResult(String resultCode,String resultMasg){
        return new ResponseResult(resultCode,resultMasg);
    }
//    public static ResponseResult buildResponseResult(String resultCode,String resultMasg,T obj){
//        return new ResponseResult(resultCode,resultMasg,obj);
//    }



}
